-- @owner: cr13
-- @date: 2024-10-15
-- @testpoint: inf特殊值作为函数名，部分合理报错

--step1:关键字不带引号 expect:合理报错
drop function if exists binary;
create function binary_double_infinity(i integer)
returns integer
as $$
begin
 return i+1;
end;
$$ language plpgsql;
/
--step2:清理环境 expect:成功
drop function binary_double_infinity;

--step3:关键字带双引号 expect:成功
drop function if exists "binary_double_infinity";
create function "binary_double_infinity"(i integer)
returns integer
as $$
begin
 return i+1;
end;
$$ language plpgsql;
/
--step4:清理环境 expect:成功
drop function "binary_double_infinity";

--step5:关键字带单引号 expect:合理报错
drop function if exists 'binary_double_infinity';
create function 'binary_double_infinity'(i integer)
returns integer
as $$
begin
 return i+1;
end;
$$ language plpgsql;
/

--step6:关键字带反引号 expect:合理报错
drop function if exists `binary_double_infinity`;
create function `binary_double_infinity`(i integer)
returns integer
as $$
begin
 return i+1;
end;
$$ language plpgsql;
/
